<link rel="stylesheet" href="../addons/jy_merch/css/mobile.css?v=1">

<div class='fui-page fui-page-current'>
    <div class="fui-header fui-header-success">
        <div class="fui-header-left">
            <a class="back" ng-click="goback();"></a>
        </div>
        <div class="title">店铺Set </div>
        <div class="fui-header-right"></div>
    </div>
    <div class='fui-content navbar'>

        <div class="fui-list-group">
            <div class="fui-list">
               
                <div class="fui-list-inner">
                    <div class="title">商城logo</div>
                </div>
                <div class="jump">
								<a class="fui-list-media" ng-if="pagedata.item.logo">
									<img class="round" ng-src="{{tomedia(pagedata.item.logo) || '../core/resource/images/nopic.jpg'}}" />
								</a>
								<a class="fui-list-media weui_uploader_input_wrp">
									<span class="weui_uploader_input" ng-click="up_file(pagedata.item,'logo','image')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple=""></span>
								</a>
				</div>
            </div>
        </div>

       <div class="fui-cell-group">
            <div class="fui-cell must ">
                <div class="fui-cell-label">Merch名称</div>
                <div class="fui-cell-info"><input type="text" class="fui-input" id="merchname" placeholder="Merch名称" ng-model="pagedata.item.merchname"/></div>
            </div>
            <div class="fui-cell must ">
                <div class="fui-cell-label">主营项目</div>
                <div class="fui-cell-info"><input type="text" class="fui-input" id="salecate" placeholder="例如鞋帽, 化妆品等" ng-model="pagedata.item.salecate"/></div>
            </div>
            <div class="fui-cell ">
                <div class="fui-cell-label">简单介绍</div>
                <div  class="fui-cell-info"><textarea id="desc" ng-model="pagedata.item.desc" placeholder="简单介绍下Merch"></textarea></div>
            </div>

        </div>
        <div class="fui-cell-group">
            <div class="fui-cell must ">
                <div class="fui-cell-label">The contact</div>
                <div class="fui-cell-info"><input type="text" class="fui-input" id="realname" placeholder="您的称呼" ng-model="pagedata.item.realname"></div>
            </div>
            <div class="fui-cell must ">
                <div class="fui-cell-label">Mobile号</div>
                <div class="fui-cell-info"><input type="tel" class="fui-input" id="mobile" placeholder="您的Mobile号" ng-model="pagedata.item.mobile"/></div>
            </div>
            <div class="fui-cell-tip">请仔细填写联系方式，保证我们能尽快联系到您~</div>

        </div>
		<div class="fui-cell-group">
            <div class="fui-cell must ">
                <div class="fui-cell-label">店铺address</div>
                <div class="fui-cell-info"><input type="text" class="fui-input" id="address" placeholder="店铺address" ng-model="pagedata.item.address"></div>
				<div class="fui-cell-remark" ng-click="tool.choose_location(pagedata.item,'address','address')"><i class="icon jinyunicon icon-ditu"></i></div>
			</div>
            <label class="col-xs-12 col-sm-3 col-md-2 left-label" style="padding: 0.75rem 0.6rem 0.65rem;">选择坐标</label>
			<div class="col-xs-12 col-sm-8 col-lg-9">
						<div class="row row-fix">
							<div class="col-xs-4 col-sm-4">
								<input type="text" ng-model="pagedata.item.lat_lng.lng" placeholder="经度"  class="form-control" />
							</div>
							<div class="col-xs-4 col-sm-4">
								<input type="text" ng-model="pagedata.item.lat_lng.lat" placeholder="纬度"  class="form-control" />
							</div>
							<div class="col-xs-4 col-sm-4">
								<a ng-click="tool.choose_location(pagedata.item,'lat_lng','lat_lng')" class="btn btn-default btn-default-o btn-sm" type="button">选择坐标</a>
							</div>
						</div>
			</div>
        </div>
        <div class="btn btn-success block" ng-click="post(pagedata.item,'post')" id="btn-submit">保存Set </div>
   
    </div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script type="text/javascript">
	scope.pagedata.setting=scope.pagedata.setting?scope.pagedata.setting:{}
	window.scope.location(function(res){
			console.log(res)
			scope.$evalAsync(function(){
				scope.pagedata.item.lat_lng=scope.pagedata.item.lat_lng?scope.pagedata.item.lat_lng:res.lat_lng
				scope.pagedata.item.address = res.address;
			});
	},scope.pagedata.setting.no_location);

</script>